package cn.community.system.mapper;

import cn.community.system.domain.DeviceRecord;
import cn.community.system.query.DeviceRecordQuery;
import cn.community.system.query.QueryObject;
import cn.community.system.vo.DeviceVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DeviceRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceRecord record);

    DeviceRecord selectByPrimaryKey(Long id);

    List<DeviceRecord> selectAll();

    int updateByPrimaryKey(DeviceRecord record);

    void agreeLeading(DeviceRecord record);

    List<DeviceRecord> selectForList(QueryObject qo);

    List<DeviceRecord> selectForAssoList(QueryObject qo);

    void agreeReturn(DeviceRecord deviceRecord);

    void applyReturn(DeviceRecord deviceRecord);

    List<DeviceVo> queryLeadList(QueryObject qo);

    List<DeviceVo> queryReturnList(QueryObject qo);

    List<DeviceVo> queryLeadListAsso(QueryObject qo);

    List<DeviceVo> queryReturnListAsso(QueryObject qo);
}